package com.zelix;

import java.util.Hashtable;
import javax.swing.*;

class g4 extends f4 {

    String N;
    mt O;
    private static String M[];

    g4(mt mt1, it it1, z2 z2, iy iy1) {
        super(it1, z2);
        O = mt1;
        iy1.a(O, this);
        O.c(this);
    }

    void a() {
        String s;
        int i;
        String s1;
        String s2;
        label0:
        {
            s = null;
            i = -1;
            s1 = null;
            s2 = null;
            String s3 = super.B.getText().trim();
            if (s3.equals(super.x))
                break label0;
            if (s3.length() > 0) {
                s1 = N + s3;
                s2 = s1.replace('.', '/');
                fh fh1 = fh.b(O.j());
                if (!fh1.u()) {
                    if (super.y.a(s2) == null) {
                        s = s2;
                        break label0;
                    }
                    new f2(super.z, M[9], M[7] + s1 + M[8]);
                    if (!tb.b)
                        break label0;
                }
                new f2(super.z, M[9], M[6]);
            } else {
                new f2(super.z, M[9], M[10]);
            }
        }
        if (e()) {
            i = O.a();
            i &= 0xfffff9ce;
            if (super.C.getSelectedIndex() == super.b)
                i |= 1;
            if (super.E.isSelectedIndex(super.f))
                i |= 0x400;
            if (super.E.isSelectedIndex(super.h))
                i |= 0x10;
            if (super.E.isSelectedIndex(super.n))
                i |= 0x20;
            if (super.E.isSelectedIndex(super.m))
                i |= 0x200;
        }
        if (s != null)
            synchronized (super.y) {
                super.A.setText(s1);
                Hashtable hashtable = new Hashtable();
                Hashtable hashtable1 = new Hashtable();
                O.a(s2, hashtable, hashtable1);
                try {
                    super.y.a(hashtable1, null);
                }
                catch (tb tb1) {
                    new f2(super.z, M[9], tb1.getMessage());
                }
                super.y.a(hashtable1);
                super.y.y();
            }
        if (i != -1)
            try {
                b(i);
                super.J = super.C.getSelectedIndex();
            }
            catch (ac ac1) {
                new f2(super.z, M[9], ac1.getMessage());
            }
    }

    void b(int i)
            throws ac {
        int j = O.a();
        fh fh1 = fh.b(O.j());
        if ((i & 0x400) != 0 && (i & 0x10) != 0)
            throw new ac(M[15]);
        if ((i & 0x200) != 0 && (j & 0x200) == 0) {
            if (!O.z().equals(M[13]))
                throw new ac(M[12]);
            if (fh1.t())
                throw new ac(M[14]);
        }
        if ((i & 0x200) == 0 && (j & 0x200) != 0 && fh1.s())
            throw new ac(M[11]);
        synchronized (super.y) {
            O.d(i);
        }
    }

    boolean e() {
        return super.C.getSelectedIndex() != super.J || super.E.isSelectedIndex(super.f) != super.K.contains(super.o) || super.E.isSelectedIndex(super.h) != super.K.contains(super.q) || super.E.isSelectedIndex(super.m) != super.K.contains(super.v) || super.E.isSelectedIndex(super.n) != super.K.contains(super.w);
    }

    void f() {
        super.D.addElement(M[5]);
        super.D.addElement(M[4]);
    }

    void a(t3 t3) {
        DefaultListModel defaultlistmodel = (DefaultListModel) t3.getModel();
        defaultlistmodel.addElement(M[2]);
        defaultlistmodel.addElement(M[1]);
        defaultlistmodel.addElement(M[0]);
        defaultlistmodel.addElement(M[3]);
    }

    void g() {
        super.b = 0;
        super.e = 1;
        super.f = 0;
        super.h = 1;
        super.m = 2;
        super.n = 3;
    }

    public void b(gs gs1, Object obj, Object obj1, Object obj2) {
        label0:
        {
            boolean flag;
            label1:
            {
                flag = tb.b;
                if (obj == null || obj1 != null && (obj1 instanceof mt) && obj != null && (obj instanceof sx) && ((sx) obj).b() == 0) {
                    super.x = O.o();
                    N = O.y();
                    if (!N.equals(""))
                        N += ".";
                    super.A.setText(N + super.x);
                    super.B.setText(super.x);
                }
                if (obj != null && (obj == null || !(obj instanceof sx) || ((sx) obj).b() != 1))
                    break label0;
                if (O.ib()) {
                    super.C.setSelectedIndex(super.b);
                    super.J = super.b;
                    if (!flag)
                        break label1;
                }
                super.C.setSelectedIndex(super.e);
                super.J = super.e;
            }
            label2:
            {
                super.K = new f1();
                if (O.C()) {
                    if (!super.E.isSelectedIndex(super.f))
                        super.E.addSelectionInterval(super.f, super.f);
                    super.K.add(super.o);
                    if (!flag)
                        break label2;
                }
                super.E.removeSelectionInterval(super.f, super.f);
            }
            label3:
            {
                if (O.D()) {
                    if (!super.E.isSelectedIndex(super.h))
                        super.E.addSelectionInterval(super.h, super.h);
                    super.K.add(super.q);
                    if (!flag)
                        break label3;
                }
                super.E.removeSelectionInterval(super.h, super.h);
            }
            label4:
            {
                if (O.E()) {
                    if (!super.E.isSelectedIndex(super.m))
                        super.E.addSelectionInterval(super.m, super.m);
                    super.K.add(super.v);
                    if (!flag)
                        break label4;
                }
                super.E.removeSelectionInterval(super.m, super.m);
            }
            if (O.G()) {
                if (!super.E.isSelectedIndex(super.n))
                    super.E.addSelectionInterval(super.n, super.n);
                super.K.add(super.w);
                if (!flag)
                    break label0;
            }
            super.E.removeSelectionInterval(super.n, super.n);
        }
        super.G.a(super.E.getSelectedIndices());
        b();
        zz.b(super.B);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key = 26;
                    break;
                case 1:
                    key = 44;
                    break;
                case 2:
                    key = 54;
                    break;
                case 3:
                    key = 88;
                    break;
                case 4:
                    key = 96;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[16];
        as[0] = "OBB=\022@MU=";
        as[1] = "@EX9\f";
        as[2] = "GNE,\022GOB";
        as[3] = "UYF=\022";
        as[4] = "VMU3\001AI";
        as[5] = "VYT4\tE";
        as[6] = "eMX6\017R\fD=\016GASx\tHBS*@E@W+\023C_\0261\016\006X^1\023\006ZS*\023OCX";
        as[7] = "e@W+\023\006";
        as[8] = "\006MZ*\005GHOx\005^EE,\023\b";
        as[9] = "c^D7\022";
        as[10] = "e@W+\023\006BW5\005\006OW6\016IX\026:\005\006NZ9\016M";
        as[11] = "rD_+@E@W+\023\006EEx\tK\\Z=\rCBB=\004\006NOx\017RDS*@E@W+\023C_\030x)R\f[-\023R\fD=\rGEXx\001H\f_6\024C^P9\003C\002";
        as[12] = "gB\0261\016RID>\001EI\026;\001H\fY6\f_\f^9\026C\fy:\nCOBx\001U\f_,GU\fE-\020C^U4\001U_";
        as[13] = "LM@9OJMX?OiN\\=\003R";
        as[14] = "rD_+@E@W+\023\006DW+@UYT;\fG_E=\023\b\f\177,@EMX6\017R\fT=@EDW6\007CH\026,\017\006MXx\tHXS*\006GOSv";
        as[15] = "gB\0269\002UXD9\003R\fU4\001U_\026;\001HBY,@G@E7@DI\026>\tHMZ";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        M = as;
    }
}